All Questions
Tagged with pure-functionobject-oriented-design
2 questions
0votes
1answer
227views
Function objects with no state shouldn't be object oriented? [closed]
My question relates to this topic here: Are classes with only a single (public) method a problem? There I read in the comments often something like that: It is no longer object oriented. Because ...
5votes
5answers
597views
Implicit reading/writing of state in OOP hurts readability, maintainability, and testability. Good way of mitigating this damage?
OOP makes state reads and writes implicit. For instance, in Python: class Foo: def bar(self): # This method may read and/or write any number of self.attributes. # There is no way ...